/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class WashingMachine {
    static categoryCode = '010040006';

    static categoryName = '洗衣机';

    device = {};

    opts = {};

    _to = undefined;

    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device;
        this.opts = opts;
        this._to = to;
    }

    get categoryCode() {
        return WashingMachine.categoryCode;
    }

    get categoryName() {
        return WashingMachine.categoryName;
    }

    getBuzzerSwitch(params) {
        return command({
            method: 'getBuzzerSwitch',
            methodId: 'UaMCoOor',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getChildrenLock(params) {
        return command({
            method: 'getChildrenLock',
            methodId: 'UmaSzf6A',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getFilterCleanReminder(params) {
        return command({
            method: 'getFilterCleanReminder',
            methodId: 'UODeNjGd',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getLaundryMode(params) {
        return command({
            method: 'getLaundryMode',
            methodId: 'pNnZFmDP',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getLaundryRemainTime(params) {
        return command({
            method: 'getLaundryRemainTime',
            methodId: 'pXZuHlC5',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getLaundryTemperature(params) {
        return command({
            method: 'getLaundryTemperature',
            methodId: 'pj7xj5lm',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getLaundryTime(params) {
        return command({
            method: 'getLaundryTime',
            methodId: 'pBTQTKSl',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getOperatingStatus(params) {
        return command({
            method: 'getOperatingStatus',
            methodId: 'p0cr80qK',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getRinsingTimes(params) {
        return command({
            method: 'getRinsingTimes',
            methodId: 'Unfc9FaC',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSpeed(params) {
        return command({
            method: 'getSpeed',
            methodId: 'pqYwmPTw',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'pz93I4zM',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getWaterVolume(params) {
        return command({
            method: 'getWaterVolume',
            methodId: 'pdN7PDHE',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setBuzzerSwitch(params) {
        return command({
            method: 'setBuzzerSwitch',
            methodId: 'pkpDnuhn',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setChildrenLock(params) {
        return command({
            method: 'setChildrenLock',
            methodId: 'phEqdc4z',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setDehydrationSpeed(params) {
        return command({
            method: 'setDehydrationSpeed',
            methodId: 'pgh0vbBW',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setLaundryMode(params) {
        return command({
            method: 'setLaundryMode',
            methodId: 'pGoxs3o1',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setLaundryTemperature(params) {
        return command({
            method: 'setLaundryTemperature',
            methodId: 'pZgR0V9k',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setLaundryTime(params) {
        return command({
            method: 'setLaundryTime',
            methodId: 'pUPQ5Smq',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setOperatingStatus(params) {
        return command({
            method: 'setOperatingStatus',
            methodId: 'ppAXwfjb',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setRinsingTimes(params) {
        return command({
            method: 'setRinsingTimes',
            methodId: 'pDrhJxdR',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSpeed(params) {
        return command({
            method: 'setSpeed',
            methodId: 'p1vFcGGo',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'peH3AFTx',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setWaterVolume(params) {
        return command({
            method: 'setWaterVolume',
            methodId: 'ptRSCY8I',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default WashingMachine;
